<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#main-nav">
                <span class="sr-only">导航菜单</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="{% url 'home' %}">
                <i class="fas fa-film"></i> 雲酷影院
            </a>
        </div>

        <div class="collapse navbar-collapse" id="main-nav">
            <ul class="nav navbar-nav">
                <li class="{% if request.resolver_match.url_name == 'home' %}active{% endif %}">
                    <a href="{% url 'home' %}">首页</a>
                </li>
                <li class="{% if request.resolver_match.url_name == 'movesList' %}active{% endif %}">
                    <a href="{% url 'movesList' %}">电影</a>
                </li>
                <li class="{% if request.resolver_match.url_name == 'actorInfoList' %}active{% endif %}">
                    <a href="{% url 'actorInfoList' %}">演员</a>
                </li>
                <li class="{% if request.resolver_match.url_name == 'tools_page' %}active{% endif %}">
                    <a href="#">工具</a>
                </li>
            </ul>
        


            <form class="navbar-form navbar-right">
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="搜索电影、演员...">
                </div>
                <button type="submit" class="btn btn-danger">搜索</button>
            </form>
        </div>
    </div>
</nav>

<!-- 可选的页面特定横幅 -->
{% block banner %}{% endblock %}